<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>GetFileDate</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">GetFileDate()</font></b></p>
<p><b>语法</b></p><blockquote>

Result = <font color="#3A3966"><b>GetFileDate</b></font>(Filename$, DateType)</blockquote>

</blockquote>
<b>概要</b><br><blockquote>



Returns the date of the specified file. 

 

</blockquote><p><b>参数</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>Filename$</i></td>
<td width="90%"> 
 
The file to get the date from. 

 

</td></tr>
<tr><td><i>DateType</i></td>
<td> 
The kind of date to return. 它可以是下列值之一︰ 
<pre><font face="Courier New, Courier, mono"size="2">  <font color="#924B72">#PB_Date_Created</font> : returns the file creation date.
  <font color="#924B72">#PB_Date_Accessed</font>: returns the last file access date.
  <font color="#924B72">#PB_Date_Modified</font>: returns the last file modification date.
</font></pre>

</td></tr>
</table>
</blockquote><p><b>返回值</b></p><blockquote>



Returns the requested date in the format of the PureBasic <a href="../date/index.html">Date</a> library. 

 

</blockquote><p><b>备注</b></p><blockquote>



On Linux and Mac OSX, the date returned for <font color="#924B72">#PB_Date_Created</font> is the same as the date for 
<font color="#924B72">#PB_Date_Modified</font>, because most file systems do not store a file creation date. 

 

</blockquote><p><b>参阅</b></p><blockquote>

<a href="setfiledate.html">SetFileDate()</a>, <a href="directoryentrydate.html">DirectoryEntryDate()</a> 

</Blockquote><p><b>已支持操作系统 </b><Blockquote>所有</Blockquote></p><center>&lt;- <a href=getfileattributes.html>GetFileAttributes()</a> - <a href="index.html">FileSystem Index</a> - <a href="getfilepart.html">GetFilePart()</a> -&gt;<br><br>

</body></html>